#encoding=utf8
'''
Created on Mar 12, 2015

@author: jingyang <jingyang@smalltreemedia.com>
'''
from base import *

DEBUG = False
STAGING = True
MAINTAIN = False

ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
    ('admin', 'jingyang@smalltreemedia.com'),
)

MANAGERS = (
    ('richard', 'richard.du@smalltreemedia.com'),
    ('admin', 'jingyang@smalltreemedia.com'),
)

ALLOWED_HOSTS = ['pts.stm.com']

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'db_pts',                      # Or path to database file if using sqlite3.
        # The following settings are not used with sqlite3:
        'USER': 'db_pts',
        'PASSWORD': 'db_pts',
        'HOST': 'localhost',                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
        'PORT': '3306',                      # Set to empty string for default.
    }
}

#MEDIA_ROOT = '/var/project/production_tracking/media/'

# override extra configs
CHECK_URL = 'http://admin.stmapps.com/api_v1/check_unique/'
WRITER_EMAIL = 'pts_notification@smalltreemedia.com'
WRITER_PWD = 'noti12345'
FILE_NAME = "App Registration Tracker"
ADS_REQUEST_FILE = 'PTS_ADS (Coppied)'
SUB_REQUEST_FILE = 'PTS_App Submission Request (Coppied)'
ADS_ID_FILE = "2015 Ads Request Tracker - Universal"
#FILE_NAME = "Step 1 - CS Registration (Responses)"

# override gmail configs
EMAIL_HOST_USER = WRITER_EMAIL
EMAIL_HOST_PASSWORD = WRITER_PWD
EMAIL_SUBJECT_PREFIX = '[PTS_STAGING]'

# override oauth configs
# register with pts_notification@smalltreemedia.com at https://console.developers.google.com
CLIENT_ID = '536483086408-nqavijn0ggd6gcmi4d187c12i6st7pdu.apps.googleusercontent.com'
CLIENT_SECRET = 'eRrEZBdR9-Phbo9S6sbYuk2c'
AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'
GET_TOKEN_URL = 'https://accounts.google.com/o/oauth2/token'
REDIRECT_URL = 'http://pts.stm.com/accounts/checkauth'

SUIT_CONFIG.update({'SITE_STAGING': not DEBUG and STAGING, 'SITE_VERSION': 'V3.6.1-2016MAR23'})

PS_DOMAIN = 'http://ps.stm.com'

APM_DOMAIN = 'http://apm-staging.stm.com'
